package sk.tramtatiri.core;

/**
 * 
 * For computing:<br />
 * Kcal -> Kj and<br /> Kj -> Kcal
 * @author nue
 *
 */
public class ComputeKcalKj {

	/** source: http://cs.wikipedia.org/wiki/Kalorie */
	public static final double COEFFICIENT = 4.185;
	
	/**
	 * compute Kcal from Kj
	 * @param kj
	 * @return
	 */
	public static double getKcal(double kj) {
		return kj/COEFFICIENT;
	}
	
	/**
	 * 
	 * compute Kj from Kcal 
	 * @param kcal
	 * @return
	 */
	public static double getKj(double kcal) {
		return kcal*COEFFICIENT;
	}
	
}
